package com.qing.springcloud.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 群成员表
(group_member)实体类
 *
 * @author zhipeng.cao
 * @since 2025-07-09 20:09:50
 * @description 由 Mybatisplus Code Generator 创建
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("group_member")
public class GroupMember extends Model<GroupMember> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
	private Long id;
    /**
     * 群ID
     */
    private Long groupId;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 成员角色(0:普通成员,1:管理员,2:群主)
     */
    private Integer role;
    /**
     * 群内备注


     */
    private String remarkName;
    /**
     * 成员状态(0:正常,1:退出,2:被踢)
     */
    private Integer status;
    /**
     * 加入时间
     */
    private Date joinTime;
    /**
     * 最后活跃时间
     */
    private Date lastActive;

    private Integer isDeleted;

}